LearningStoreJob.AddOrUpdateItem Method (string, IDictionary<string,object>, IDictionary<string,object>)

Add an item, or update the item properties if the item already exists

Parent Type: LearningStoreJob

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public LearningStoreItemIdentifier AddOrUpdateItem (
string itemTypeName,
IDictionary<string,object> uniquePropertyValues,
IDictionary<string,object> propertyValuesToUpdate

)

Parameters

itemTypeName

The name of the item type to add

uniquePropertyValues

Property values that uniquely identify the item to be added or updated.

propertyValuesToUpdate

Property values to be updated if the item is updated, or set if the item is added.

Return Value

A temporary LearningStoreItemIdentifier that identifies the item being added or updated.

Remarks

Calls AddOrUpdateItem(itemTypeName, uniquePropertyValues, propertyValuesToUpdate, null, false). See that overload for more details.